using UnityEngine.UI;

namespace HEFramework
{
    /// <summary>
    ///
    /// UI文本行为接口
    /// 
    /// ----------------------------------------
    /// 作者 hep
    /// 创建时间：2023-02-17 17:26:25
    /// ----------------------------------------
    /// </summary>
    public interface IUITextBehaviour : IUIBehaviour
    {
        /// <summary>
        /// 文本
        /// </summary>
        Text Text { get; }

        /// <summary>
        /// 设置文本
        /// </summary>
        /// <param name="_text"></param>
        IUITextBehaviour SetText(string _text);

        /// <summary>
        /// 设置文本颜色
        /// </summary>
        /// <param name="_r"></param>
        /// <param name="_g"></param>
        /// <param name="_b"></param>
        /// <param name="_a"></param>
        IUITextBehaviour SetColor(int _r, int _g, int _b, int _a);
    }
}